package com.njxzc.igo.Dao;

import java.util.List;

import com.njxzc.igo.model.Order;
import com.njxzc.igo.model.OrderDetails;
import com.njxzc.igo.model.OrderType;
import com.njxzc.igo.model.SelectedItem;
import com.njxzc.igo.model.ShoppingCart;
import com.njxzc.igo.utils.Pager;

public interface OrderDao {
	public OrderType findOrderTypeById(int id);
	
	public boolean saveOrderByElements(Order o,OrderDetails od ,List<SelectedItem> list);
	
	public List<Order> findOrdersById(long userId);
	
	public Order findOrderByid(String orderId);
	
	public Order loadOrderSelectedDetails(Order order);

	public Pager PagingfindAll(int size, int page);
	
	public Pager insertIntoPage(Pager pager);
	
	
	public List<OrderType> findAll();

	public boolean modifyOrderType(Order order, OrderType orderType);

}
